package testing;

import acm.*;

import static org.junit.Assert.*;

import java.sql.SQLException;
import org.junit.Test;


public class JunitParImpar {
	ParImpar objeto_game = new ParImpar();
	
	@Test
	public void probarMetodo() throws SQLException{
		
		assertTrue(objeto_game.jugada(3, "1 0 4", "3 1 2") == 0);
		assertTrue(objeto_game.jugada(9, "0 2 2 4 2 1 2 0 4", "1 2 3 4 5 0 1 2 3") == 3);
		assertFalse(objeto_game.jugada(3, "1 0 4", "3 1 2") == 2);
		
	}
	@Test
	public void probarMetodo2() throws SQLException{
		
		assertFalse(objeto_game.par(3)==true);
		assertTrue(objeto_game.par(4)==true);
		assertFalse(objeto_game.par(5)==true);
		
	}
}
